package com.yuyou.tas.service.api.feedback.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "tas-feedback-service")
@RequestMapping(value = "/feedbackPraiseAPI")
public interface FeedbackPraiseAPI {

    @RequestMapping(value = "/saveFeedbackPraise")
    void saveFeedbackPraise(@RequestParam("feedbackClassId")Long feedbackClassId , @RequestParam("receUserId")Long receUserId ,
                             @RequestParam("sendUserId")Long sendUserId, @RequestParam("organId")Long organId);


    @RequestMapping(value = "/countPraiseByFeedbackClassId")
    Long countPraiseByFeedbackClassId(@RequestParam("feedbackClassId")Long feedbackClassId);

    @RequestMapping(value = "/countPraiseByFeedbackClassIdUserId")
    Long countPraiseByFeedbackClassIdUserId(@RequestParam("feedbackClassId")Long feedbackClassId, @RequestParam("sendUserId")Long sendUserId);
}
